package com.itheima.Array;

public class array {
    public static void main(String[] args) {
        int[] arr = {50, 46, 37, 28, 19};
        for (int strat = 0, end = arr.length - 1; strat < end; strat++, end--) {
            int step = arr[strat];
            arr[strat] = arr[end];
            arr[end] = step;
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
